print("a模式")
for i in range(0,6):
    for j in range(0,i+1):
        print(j+1,end=' ')
    print()


print("b模式")
for i in range(0,6):
    for j in range(0,6-i):
        print(j+1,end=' ')
    print()

print("c模式")
for i in range(0,6):
    for j in range(1,6-i+1):
        print(format("","2s"), end=' ')
    for j in range(0,i+1):
        print(format(j+1,"2d"),end=' ')
    print()

print("d模式")
for i in range(0,6):
    for j in range(1,i+1):
        print(format("","2s"), end=' ')
    for j in range(0,6-i):
        print(format(j+1,"2d"),end=' ')
    print()